package com.levi.distributedjob.scheduled;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * 异步执行的任务
 */
@Component
@Slf4j
public class AsyncProcess {

    @Async
    public void asyncProcess() throws InterruptedException {
        log.info("asyncProcess  start ...");
        Thread.sleep(5000);
        log.info("asyncProcess  end ...");
    }

}
